import { ProtocolComponent } from "@components/Apps/MMWR/MMWRComponent";
import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";

export default class MillimeterWaveRadarProtocolDataUpdateMessageHandler extends MessageHandler<ClientMessage.MillimeterWaveRadarProtocolDataUpdateMessage> {
    protected async RunAsync(message: ClientMessage.MillimeterWaveRadarProtocolDataUpdateMessage): Promise<void> {
        console.log('-------------',message);
        console.log('message.Datas[0]',message.Datas[0]);
        // ProtocolComponent.Default.Receive(message.Datas);
        // if (message.Datas.length > 0) {
        if (message.Datas[0]) {
          ProtocolComponent.Default.Receive(message.Datas);
        }
    }
}